package com.youlian.cloud.user.service.impl;

import com.youlian.cloud.user.service.IUserService;
import com.youlian.cloud.user.service.request.UserRequest;
import com.youlian.cloud.core.response.ResponseCommonModel;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * @author liuhx
 * @create 2019/08/05 14:57
 * @email liuhx@elab-plus.com
 **/
@RestController
@RequestMapping(value = "/user")
@Api(value = "用户模块", description = "用户模块", tags = {"用户模块"})
public class UserServiceImpl implements IUserService {
    /**
     * 新增用户
     * @param request
     * @return
     * @throws Exception
     */
    @Override
    @ApiOperation(value = "新增用户", notes = "新增用户", nickname = "刘海啸")
    @RequestMapping(value = "add", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public ResponseCommonModel insert(@RequestBody UserRequest request) throws Exception {
        ResponseCommonModel responseModel = new ResponseCommonModel();
        responseModel.setId("555");
        return responseModel;
    }
}
